package com.tyut.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tyut.entity.Address;
import com.tyut.entity.Merchant;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 * 商家表 服务类
 * </p>
 *
 * @author 李嘉昕
 * @since 2025-03-18
 */
public interface MerchantService extends IService<Merchant> {
    boolean applyForMerchant(Merchant merchant , Address address ,MultipartFile merPicture , MultipartFile merCheckPhoto) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    boolean checkApply(Integer id);

}
